package day14_21.day20;

import java.util.Scanner;

public class Main01 {
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        String str1 = scn.next();
        StringBuffer str2 = new StringBuffer(str1);
        System.out.print(str2.reverse().toString());
    }
}
